stack: always update window position at transition start
authorMatt Watson <mattdangerw@gmail.com>
Fri, 13 May 2016 07:22:20 +0000 (00:22 -0700)
committerMatt Watson <mattdangerw@gmail.com>
Mon, 16 May 2016 20:53:26 +0000 (13:53 -0700)
Sometimes on wayland we're seeing a frame draw before the first tick
callback, where the window position has not yet been updated.

With this change, the window is properly positioned as soon as
gtk_stack_start_transition returns.

https://bugzilla.gnome.org/show_bug.cgi?id=766405

gtk/gtkstack.c

index 882829c574fe9554a990031113a9cbad16e1e19a..38b54ec8f38132c08e7e469b218f878bfcbe66ee 100644 (file)
@@ -1029,8 +1029,9 @@ gtk_stack_start_transition (GtkStack               *stack,
       gtk_stack_unschedule_ticks (stack);
       priv->active_transition_type = GTK_STACK_TRANSITION_TYPE_NONE;
       gtk_progress_tracker_finish (&priv->tracker);
-      gtk_stack_progress_updated (GTK_STACK (widget));
     }
+
+  gtk_stack_progress_updated (GTK_STACK (widget));
 }
 
 static void